//
//  RCFilterHeaderItem.m
//  RocketProject
//
//  Created by chen jiedan on 13-9-7.
//  Copyright (c) 2013年 Rocket. All rights reserved.
//

#import "RCFilterHeaderItem.h"
#import "ImageDefs.h"


#define kRCItemArrowNormal        kLVImageNamed(@"rc_item_arrow_down.png")
#define kRCItemArrowPressed       kLVImageNamed(@"rc_item_arrow_up.png")


@implementation RCFilterHeaderItem

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/


- (void)initImage
{
    _imgNormalBg = [[kItemBgNormal stretchableImageWithLeftCapWidth:0 topCapHeight:0]retain];
    _imgSelectedBg = [[kItemBgPressed stretchableImageWithLeftCapWidth:0 topCapHeight:0]retain];
    _imgNormalArrow = [kRCItemArrowNormal retain];
    _imgSelectedArrow = [kRCItemArrowPressed retain];
    _imgItemBottomArrow = [kTabItemBottomArrow retain];
}


- (void) layoutSubviews
{
    [super layoutSubviewsWithArrowWidth:14 andHeight:12 iconInRight:YES];
}

@end
